#pragma once
#include <string>
#include "PyProTk.h"

struct PyProUIDialog:	PyObject
{
	char* dialog;
};

extern PyTypeObject PyProUIDialogType;

int PyInit_ProUIDialog(  PyObject* m );

struct UIDialogTag
{
	typedef char* Protktype;
	typedef char* ProtkPointType;
	typedef PyObject* pytype;

	char* m_protkval;
	pytype pyval;
	PyProUIDialog* pyRetval;

	UIDialogTag();
	~UIDialogTag();

	ProtkPointType GetValPoint()
	{
		return m_protkval;
	}
	Protktype GetVal()
	{
		return m_protkval;
	}

	int self_to_this(PyObject *self)
	{
		pyval = self;
		return PyValueToTkValue();
	}

	static char* PyArgStr(){return "o";}
	int PyValueToTkValue();

	static char* PyTkStr(){return "o";}
	int TkValueToPyValue(){
		pyRetval = PyObject_New(PyProUIDialog,&PyProUIDialogType);
		pyRetval->dialog = m_protkval;
		return 1;
	}
};